<?php
require_once('../wpfunctions.php');
ip_redirectIfNotLoggedIn()
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head><title>Illuminare Score Editor</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="../style.css" />
<link rel="stylesheet" type="text/css" href="../style2.css" />
<link type="text/css" href="../css/smoothness/jquery-ui-1.10.3.custom.css" rel="stylesheet" />  
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js" type="text/javascript"></script>
<script src="../js/jquery-ui-1.10.3.min.js"></script>
<script src="../js/jquery.autosize-min.js"></script>
<script src="../js/jquery-buttonsetv.js"></script>
<script src="../jgabc.js"></script>
<script src="score-editor.js"></script>
</head>
<body>
<div style='color:red;font-weight:bold;font-family:sans-serif'><? echo ip_siteName() ?></div>
<style>
a.remove-button {
  background-image:url(../library/~icons/close.svg);
  background-size:cover;
  width:18px;
  height:18px;
  float:right;
  margin-top:3px;
  margin-right:-4px;
}
tr[section]:not(.separator):not(.genre):not(.title):not(.active):not(.placeholder),
.hidden,
tr.active+tr.buttonrow a.del-section,
tr.active.placeholder:not(.title) {
  display: none;
}
tr.active+tr.buttonrow {
  display: table-row!important;
}
hr.verse,hr.engraving {
  border-top: 1px solid #bbb;
  border-bottom: none;
  border-left: none;
  border-right: none;
}
td.verses,td.engravings {
  padding-left: 18pt;
}
table.main[engraving] .del-engraving {
  display:none;
}
a.del-engraving {
  float: right;
}
textarea{
  padding:2px;
  margin-left:-2px;
  width:450px;
  height:150px;
  min-height: 80px;
  max-height: 500px;
  resize: vertical;
}
.body{
  max-width:6.8in;
  width:6.8in;
  margin-left:-326px;
  left:50%;
  top:88px;
  bottom:0px;
  overflow-y:auto;
  position:fixed;
}
.siglia-icon{
  height:15px;
  vertical-align:top;
  padding-top:2px;
}
</style>
<div class='top'>
<div>
  <a href='.'><img alt="Illuminare Score Editor" src="../logo/score-editor.png" height="27" width="399" style="margin:1.25em 0 0.75em;max-width:50%;height:auto" usemap='#home'/></a>
  <a href='../'><img src="../logo/Home_Icon.svg" style="width: 27px;float:right;margin-top:1.25em"></a>
  <a href='<?php echo ip_logoutUrl(); ?>' style="float:right;font-family:sans-serif;margin:1.5em 2em 0">Log out</a>
</div>
<div class="lnkBtn sans">
<!--<a href="#" id="lnkDownloadGabc" draggable target="_blank">Download GABC</a>
&nbsp;&nbsp;--><a href="#" title="&lt;Ctrl>+P" id="lnkGregorio">Preview</a>
&nbsp;&nbsp;<a href="#" title="&lt;Ctrl>+S" id="lnkSaveGregorio">Save</a>
&nbsp;&nbsp;<a href="#" title="&lt;Ctrl>+&lt;Shift>+P" id="lnkGregorioPDF">PDF</a>
<!--&nbsp;&nbsp;<a href="#" title="&lt;Ctrl>+D" id="lnkSmallPDF">Small PDF</a>-->
&nbsp;&nbsp;<a href="#" title="&lt;Ctrl>+&lt;Shift>+U" id="lnkPublish">Publish</a>
&nbsp;&nbsp;<a href="#" title="&lt;Ctrl>+&lt;Shift>+Z" id="lnkSectionPDF">Current Section PDF</a>
&nbsp;&nbsp;<a href="#" title="&lt;Ctrl>+&lt;Shift>+C" id="lnkClear">Clear Fields</a>
</div>
</div>
<div class='body'>
<div id="notifications" class="sans" style="margin-top:-10px;background:inherit;padding:7px;opacity:0.8"></div>
<table class='sans' style='width:6.5in;padding-top:0;padding-bottom:20px;'>
<col width="166"/><col/>
<tr section='title' class='sectiontitle title'><td><label for="txtLoadScore">Open</label></td>
    <td><input type="text" id="txtLoadScore" autofocus /></td>
</tr><tr section='title' class='sectiontitle title'><td colspan="2"><hr/></td>
</tr><tr section='title' class='sectiontitle'><td><label for="txtEdition">Directory</label></td>
    <td><input type="text" id="txtEdition" name="edition" /></td>
</tr><tr section='title' class='sectiontitle'>
    <td><label for="txtSupertitle">Supertitle</label></td>
    <td><input type="text" id="txtSupertitle" name="supertitle" /></td>
</tr><tr section='title' class='title sectiontitle'>
    <td><label for="txtTitle">Title</label></td>
    <td><input type="text" id="txtTitle" name="title"/></td>
</tr><tr section='title' class='sectiontitle'>
    <td><label for="txtSubtitle">Subtitle</label></td>
    <td><input type="text" id="txtSubtitle" name="subtitle"/></td>
</tr><tr section='title' class='sectiontitle'>
    <td><input type="checkbox" id="cbOverrideFilename" style="display:none" /> <a href='#'><label for="cbOverrideFilename">Override Filename</label></a></td>
    <td><input type="text" id="txtFilename" name="filename" disabled /></td>
</tr><tr section='title' class='sectiontitle'>
    <td><input type="checkbox" id="cbOverrideTextLeft" style="display:none" /> <a href='#'><label for="cbOverrideTextLeft">Override Text-Left</label></a></td>
    <td><input type="text" id="txtOverrideTextLeft" name="globalOverrideTextLeft" disabled /></td>
</tr><tr section='title' class='sectiontitle'>
    <td><input type="checkbox" id="cbOverrideTextRight" style="display:none" /> <a href='#'><label for="cbOverrideTextRight">Override Text-Right</label></a></td>
    <td><input type="text" id="txtOverrideTextRight" name="globalOverrideTextRight" disabled /></td>
</tr><tr section='title' class='sectiontitle'>
    <td><input type="checkbox" id="cbOverrideHeader" style="display:none" /> <a href='#'><label for="cbOverrideHeader">Override Header</label></a></td>
    <td><input type="text" id="txtOverrideHeader" name="globalOverrideHeader" disabled /></td>
</tr><tr section='title' class='sectiontitle'>
    <td>Override Siglia</td>
    <td>
      <input type="checkbox" tabindex="-1" id="cbOverrideSigliaRM" value="RM" name="siglia"/><label for="cbOverrideSigliaRM">RM</label>
      <input type="checkbox" tabindex="-1" id="cbOverrideSigliaGR" value="GR" name="siglia"/><label for="cbOverrideSigliaGR">GR</label>
      <input type="checkbox" tabindex="-1" id="cbOverrideSigliaGS" value="GS" name="siglia"/><label for="cbOverrideSigliaGS">GS</label>
      <input type="checkbox" tabindex="-1" id="cbOverrideSigliaL" value="L" name="siglia"/><label for="cbOverrideSigliaL">L</label>
      <input type="checkbox" tabindex="-1" id="cbOverrideSigliaIcon-white" value="Icon-white" name="siglia"/><label for="cbOverrideSigliaIcon-white"><img class="siglia-icon" src="../library/~icons/white.png"/></label>
      <input type="checkbox" tabindex="-1" id="cbOverrideSigliaIcon-half" value="Icon-half" name="siglia"/><label for="cbOverrideSigliaIcon-half"><img class="siglia-icon" src="../library/~icons/half.png"/></label>
      <input type="checkbox" tabindex="-1" id="cbOverrideSigliaIcon-black" value="Icon-black" name="siglia"/><label for="cbOverrideSigliaIcon-black"><img class="siglia-icon" src="../library/~icons/black.png"/></label>
      <input type="checkbox" tabindex="-1" id="cbOverrideSigliaIcon-asterisk" value="Icon-asterisk" name="siglia"/><label for="cbOverrideSigliaIcon-asterisk"><img class="siglia-icon" src="../library/~icons/asterisk.png"/></label>
    </td>
</tr><tr section='title' class='sectiontitle'>
    <td><label>Marginal Numbers:</label></td>
    <td><input type="checkbox" name="swapmarginalnumbers" id="cbSwapMarginalNumbers"/><label for="cbSwapMarginalNumbers">Swap Left/Right Marginal Numbers</label></td>
</tr><tr section='title' class='sectiontitle'>
    <td></td>
    <td id="rbMarginalNumberAlignment"><input type="radio" name="marginalnumberalignment" id="rbMarginalNumbersAlignGenre" value="genre" checked/><label for="rbMarginalNumbersAlignGenre">Align to Genre</label> <input type="radio" name="marginalnumberalignment" id="rbMarginalNumbersAlignTextAboveStaff" value="textabovestaff"/><label for="rbMarginalNumbersAlignTextAboveStaff">Align to Text above Staff</label></td>
</tr><tr section='title' class='sectiontitle'>
    <td><label for='txtTemplate'><a target="_blank">Template:</a></label></td>
    <td><input type="text" name="template" id="txtTemplate"/></td>
</tr><tr section='title' class='sectiontitle'>
    <td></td>
    <td><button type="button" id="btnAntiphonOnly">Make antiphon-only version</button></td>
</tr><tr class='finalSeparator'><td colspan='2'><hr/>
  <ul class='menu' style='width:100px'>
    <li>
      <a href='#'>+</a>
      <ul>
        <li><a href="#">Engraving Section</a>
            <ul>
              <li><a class="add-section" type="engraving-Square" href="#">Square</a></li>
              <li><a class="add-section" type="engraving-Modern" href="#">Modern</a></li>
            </ul>
        </li>
        <li><a class="add-section" type="text" href="#">Text Section</a></li>
        <li><a class="add-section" type="antiphon-tone" href="#">Antiphon Tone Section</a></li>
        <li><a class="add-section" type="rubric" href="#">Rubric Section</a></li>
        <li><a class="add-section" type="hymn" href="#">Hymn Section</a></li>
        <li><a class="add-section" type="hairline" href="#">Hairline Section</a></li>
        <li><a class="add-section" type="pagebreak" href="#">Page Break Section</a></li>
        <li><a class="add-section" type="space" href="#">Space Section</a></li>
      </ul>
    </li>
  </ul>
  <hr/>
</td>
</tr><tr>
    <td><label for="txtFooter"><a target="_blank">Footer</a></label></td>
    <td><input type="text" id="txtFooter" name="footer"/></td>
    <!--<td><div class='selectDiv'><select id="txtFooter" name="footer">
      <option></option>
      <option value='\interlinepenalty 10000 As found in the Lumen Christi Missal, a beautiful, permanent, comprehensive worship resource that is built upon the Roman Missal, Third Edition. For more information, or to order, please visit \linebreak www.illuminarepublications.com\\*\\*Musical setting by , licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.\\*\\*Excerpts from the English translation of The Roman Missal © 2010, International Commission on English in the Liturgy Corporation. All rights reserved.\\*\\*Gratis permission is granted to Illuminare Publications to post to the Internet individual digital files of musical settings of the Revised Grail Psalms. These digital files may be distributed to, and downloaded by, the general public for use within their religious communities, provided no remuneration is exchanged for this use. Any composer wishing to sell his/her settings of the Revised Grail Psalms, whether at cost or for a profit, should contact GIA for permission. All other policies regarding copyright notice and other licensing stipulations must be observed; visit www.giamusic.com/RGP for more information.'>Test1</option>
      <option value='{\centering www.illuminarepublications.com&#10;&#10;}'>www.illuminarepublications.com</option>
    </select></div></td>-->
</tr>
</table>
</div>

<form id="imageForm" target="image" method="post" action="../processPsalm.php">
<input class="donotclear" type="hidden" id="imgf_croppdf" value="false" name="croppdf"/>
<input type="hidden" id="imgf_txtEdition" name="edition"/>
<input type="hidden" id="imgf_txtSupertitle" name="supertitle"/>
<input type="hidden" id="imgf_txtTitle" name="title"/>
<input type="hidden" id="imgf_txtSubtitle" name="subtitle"/>
<input type="hidden" id="imgf_txtFooter" name="footer"/>
<input type="hidden" id="imgf_txtFilename" name="filename"/>
<input type="hidden" id="imgf_cbIncludeVerses" value="1" name="includeverses"/>
<input type="hidden" id="imgf_engravings" name="engravings"/>
<input type="hidden" id="imgf_verses" name="verses"/>
<input type="hidden" id="imgf_cbSwapMarginalNumbers" name="swapmarginalnumbers"/>
<input type="hidden" id="imgf_rbMarginalNumberAlignment" value="genre" name="marginalnumberalignment"/>
<input type="hidden" id="imgf_txtOverrideTextLeft" name="globalOverrideTextLeft" value="null"/>
<input type="hidden" id="imgf_txtOverrideTextRight" name="globalOverrideTextRight" value="null"/>
<input type="hidden" id="imgf_txtOverrideHeader" name="globalOverrideHeader" value="null"/>
<input type="hidden" id="imgf_overrideSiglia" name="overrideSiglia"/>
</form>
<div id="chant-image">
  <iframe name="image" id="chant-image-iframe" frameBorder="0" style='background-color:white'></iframe>
</div>
<div id="loadProgress" class="loading sans" style="display:none;">
  <div id='progressText'>Loading...</div>
  <div id="progressBar"></div>
</div>
<div id="loading-overlay" class="loading overlay" style="display:none;"></div>
<div id="overlay" style="display:none;"></div>
<form id="pdfForm" target="_blank" method="post" action="../processPsalm.php">
<input class="donotclear" type="hidden" name="fmt" value="pdf"/>
<input class="donotclear" type="hidden" id="pdff_croppdf" value="false" name="croppdf"/>
<input type="hidden" id="pdff_txtEdition" name="edition"/>
<input type="hidden" id="pdff_txtSupertitle" name="supertitle"/>
<input type="hidden" id="pdff_txtTitle" name="title"/>
<input type="hidden" id="pdff_txtSubtitle" name="subtitle"/>
<input type="hidden" id="pdff_txtFooter" name="footer"/>
<input type="hidden" id="pdff_txtFilename" name="filename"/>
<input type="hidden" id="pdff_cbIncludeVerses" value="1" name="includeverses"/>
<input type="hidden" id="pdff_engravings" name="engravings"/>
<input type="hidden" id="pdff_verses" name="verses"/>
<input type="hidden" id="pdff_cbSwapMarginalNumbers" name="swapmarginalnumbers"/>
<input type="hidden" id="pdff_rbMarginalNumberAlignment" value="genre" name="marginalnumberalignment"/>
<input type="hidden" id="pdff_txtOverrideTextLeft" name="globalOverrideTextLeft" value="null" />
<input type="hidden" id="pdff_txtOverrideTextRight" name="globalOverrideTextRight" value="null" />
<input type="hidden" id="pdff_txtOverrideHeader" name="globalOverrideHeader" value="null" />
<input type="hidden" id="pdff_overrideSiglia" name="overrideSiglia"/>
<input type="hidden" id="pdff_txtTemplate" name="template"/>
<input type="hidden" id="pdff_subsetfonts" name="subsetfonts"/>
<input type="hidden" id="pdff_publish" name="publish"/>
</form>
</body>
</html>